package com.youmans.eduservice.client;

import com.youmans.commonutils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(name="service-ucenter",fallback = UcenterClientImpl.class)
public interface UcenterClient {
    //根据用户id获取用户信息
    @GetMapping(value = "/educenter/member/getInfoUc/{memberId}",produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
    public R getUcenterById(@PathVariable("memberId") String memberId);
}

